package es.mfp.practicos.service;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import es.mfp.practicos.DTO.ConsultaConsumosCriteria;
import es.mfp.practicos.dao.LineaFacturaDAO;
import es.mfp.practicos.domain.LineaFactura;

@Component("lineaFacturaService")
public class LineaFacturaServiceImpl implements LineaFacturaService {

	@Autowired
	private LineaFacturaDAO dao = null;

	@Override
	public List<LineaFactura> buscar(ConsultaConsumosCriteria criteria) {
		return dao.findByCriteria(criteria);
	}

	@Override
	public List<LineaFactura> getLineasFactura() {
		return dao.getAll();
	}

	public void setDao(LineaFacturaDAO dao) {
		this.dao = dao;
	}

}
